package com.ruoyi.web.controller.warning;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.warning.domain.query.Ipv4AddressesQuery;
import com.ruoyi.warning.service.IIpv4AddressesService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author chenhc
 * @since 2025-04-03
 */
@RestController
@RequestMapping("/ipv4Addresses")
@Api(tags = "ipv4地址", description = "用于处理ipv4地址相关操作的控制器")
public class Ipv4AddressesController {
    @Resource
    private IIpv4AddressesService ipv4AddressesService;

    @ApiOperation("获取ipv4地址")
    @GetMapping(value = "/getIpAddresses")
    public R getIpAddresses(Ipv4AddressesQuery query)
    {
        return R.ok(ipv4AddressesService.getIpAddresses(query));
    }
}
